import Vue from 'vue'
import Router from 'vue-router'
//登录 
const Login = resolve => require(['@/page/views/login.vue'],resolve);  
//
const mixBase = resolve => require(['@/page/mix/mixBase.vue'],resolve);  


import CCP_ROUTER_INDEX from './ccp_router' 
import M_ROUTER_INDEX from './m_router'
import XKH_ROUTER_INDEX from './xkh_router'
import DC_ROUTER_INDEX from './dc_router'

const M_CCP_ROUTER=M_ROUTER_INDEX.concat(CCP_ROUTER_INDEX)
const M_XKH_ROUTER=M_CCP_ROUTER.concat(XKH_ROUTER_INDEX)
const CHILDLIST=M_XKH_ROUTER.concat(DC_ROUTER_INDEX) 
Vue.use(Router) 
export default new Router({
  routes: [
    {path: '/Login',name: 'Login',component: Login,meta:{title:'登录'}},
    {path: '/mixBase',component: mixBase,children:CHILDLIST},
    {path:'*',redirect:'/systemSetting'},
  ]
})
